﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsTest.BusiManager
{
    public partial class BusiOrderAdd : UserControl
    {
        string[][] initData = new string[][] { new string[] { "MSP4300", "2012-1-1", "TIMSP43", "test", "12", "0.9200", "0.0000", "6000", "0.0000" }, new string[] { "SP5300", "2011-12-1", "TP43", "test", "12", "0.4200", "0.0000", "6000", "0.0000" } };

        public BusiOrderAdd()
        {
            InitializeComponent();

            this.dataGridView1.Rows.Add();
            for (int i = 0; i < initData.Length; i++)
            {
                for (int j = 0; j < initData[0].Length; j++)
                {
                    this.dataGridView1.Rows[i].Cells[j].Value = initData[i][j];
                }

            }
        }
        public  void setSpiltHidde()
        {
            this.splitContainer1.Panel1Collapsed = true;
        }
        private void label2_Click(object sender, EventArgs e)
        {

        }

        private void label4_Click(object sender, EventArgs e)
        {

        }

        private void button9_Click(object sender, EventArgs e)
        {
            
        }

        private void splitContainer1_Panel1_Paint(object sender, PaintEventArgs e)
        {

        }

        private void button2_Click(object sender, EventArgs e)
        {
            WindowsFormsTest.BusiManager.ProductAdd pa = new ProductAdd();
            pa.ShowDialog();
           
        }
    }
}
